package tgc.edu.xzy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import tgc.edu.xzy.custom.CommonService;
import tgc.edu.xzy.entity.Accredit;
import tgc.edu.xzy.repostory.ImpowerRepostory;

@Service
public class ImpowerService extends CommonService<Accredit, Integer>{
	@Autowired
	private ImpowerRepostory impowerDAO;

	public Page<Accredit> findByLesseeLesseeAdminId(Integer id, Pageable pageable) {
		return impowerDAO.findByLesseeLesseeAdminId(id,pageable);
	}

	public Page<Accredit> findByLesseeLesseeAdminId(Integer id, Specification<Accredit> buildSpes, Pageable pageable) {
		return impowerDAO.findByLesseeLesseeAdminId(id,buildSpes,pageable);
	}
}
